package cn.zlp.hrm.controller;

import cn.zlp.hrm.service.IPreCreateOrderService;
import cn.zlp.hrm.vo.PreCreateOrderData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//预创订单controller
@RestController
@RequestMapping("/preCreateOrder")
public class PreCreateOrderController {

    @Autowired
    private IPreCreateOrderService preCreateOrderService;
    @GetMapping
    public List<PreCreateOrderData> list(){
        return preCreateOrderService.list();
    }
}